function refreshRem() {
  var docEl = document.documentElement;
  var width = docEl.clientWidth;
  var base = 100;
  var rem = (width * base) / 375;
  docEl.style.fontSize = rem + "px";
}
refreshRem();
